﻿{template 'common/header'}
{php echo $this -> set_tabbar($action, 3);}
<div class="main">
    <form action="" method="post" class="form-horizontal form" onsubmit="return formcheck(this)">
        <div class="panel panel-default">
            <div class="panel-heading">
                充值日志
            </div>
            <div class="table-responsive panel-body">
                <table class="table table-hover">
                    <thead class="navbar-inner">
                    <tr>
                        <th style="width:5%;">编号</th>
                        <th style="width:15%;">卡号</th>
                        <th style="width:10%;">用户名</th>
                       <th style="width:10%;">消费金额</th>
                       <th style="width:10%;">消费类型</th>
                     <th style="width:18%;">时间</th>
                     <th style="width:18%;">微信单号</th>
                    </tr>
                    </thead>
                    <tbody id="level-list">
                    {loop $list $item}
                    <tr>
                        <td style="width:40px;">{$item['id']}</td>
                        <td><a href="{php echo $this->createWebUrl('rechargelog', array('cardid' => $item['cardid']))}">{$item['cardnumber']}</a></td>
                        <td>{$fans[$item['from_user']]['realname']}</td>
                         <td>{$item['price']}</td>
                        <td>{if $item['paytype']==1}余额{/if}{if $item['paytype']==2}在线{/if}{if $item['paytype']==3}手工{/if}</td>
                        <td>{php echo date('Y-m-d H:i:s', $item['dateline'])}</td>
                        <td>{$item['transid']}</td>
                    </tr>
                    {/loop}
                    </tbody>
                </table>
            </div>
        </div>
    </form>
    {$pager}
</div>